package com.chen.authority.entity;

import com.fasterxml.jackson.annotation.JsonInclude;
import lombok.Data;

import java.util.List;

/**
 * 树形 实体类
 *
 * @author chengy
 * @date 2023/9/20
 */
@Data
public class TreeEntity {

    /**
     * 主键
     */
    private Integer id;

    /**
     * 父节点ID
     */
    private Integer parentId;

    /**
     * 节点名称
     */
    private String name;

    /**
     * 子节点集合
     */
    @JsonInclude(JsonInclude.Include.NON_EMPTY)
    private List<?> children;

}